package ooday02;
/** 狗类 */
public class Dog extends Animal{
    String eat;
    Dog(String name,int age,String color,String eat){
        super(name,age,color);
        this.eat = eat;
    }
    void lookHome(){
        System.out.println(color+"颜色的"+name+age+"在看家。。。");
    }
    void eat(){
        System.out.println(color+"颜色的"+name+age+"岁了,他在吃"+eat+"...");
    }

}
